package com.eascs.web.demo.dubbo.service;

import java.util.List;

import com.alibaba.dubbo.config.annotation.Reference;
import com.eascs.web.demo.db.DbDemoEntity;
import com.eascs.web.demo.dubbo.api.DubboDemo;
import com.eascs.web.demo.dubbo.api.DubboDemoSeviceRequest;
import com.eascs.web.demo.dubbo.api.DubboDemoSeviceResponse;

@org.springframework.stereotype.Service
public class DubboDemoService {
	@Reference
	private DubboDemo dubboDemo;

	public DubboDemo getDubboDemo() {
		return dubboDemo;
	}

	public void setDubboDemo(DubboDemo dubboDemo) {
		this.dubboDemo = dubboDemo;
	}

	public DubboDemoSeviceResponse call(DubboDemoSeviceRequest dubboDemoSeviceRequest) {
		return dubboDemo.call(dubboDemoSeviceRequest);
	}

	public void clean() {
		dubboDemo.clean();
	}

	public void init() {
		dubboDemo.init();
	}

	public void add(DbDemoEntity dbDemoEntity) {
		dubboDemo.add(dbDemoEntity);
	}

	public void testTransactional() {
		dubboDemo.testTransactional();
	}

	public void testTransactional(boolean success) {
		dubboDemo.testTransactional(success);
	}

	public List<DbDemoEntity> list() {
		return dubboDemo.list();
	}

}
